import Vue from 'vue'
import App from './App'
import {myRequest} from './util/api.js'
//引入vuex
import store from './store'



Vue.config.productionTip = false
Vue.prototype.$myRequest=myRequest
App.mpType = 'app'

const app = new Vue({
    ...App,
	//挂载
	store
})
app.$mount()

Vue.filter('formatDate',function(originVals){
	const date=new Date(originVals)
	const y=date.getFullYear()
	const m=(date.getMonth()+1).toString().padStart(2,'0')
	const d=date.getDate().toString().padStart(2,'0')
	return `${y}-${m}-${d}`
})

